package com.chris.design.pattern.samples.builder;

import com.chris.design.pattern.samples.prototype.ConcreteBuilder;

/**
 * 建造者模式
 *
 * @author Chris
 */
public class BuilderAppMain {

    public static void main(String[] args) {
        AbstractBuilder builder = new ConcreteBuilder();
        Director director = new Director(builder);
        director.construct();

        Product product = builder.retrieveResult();
        System.out.println(product.getPart1());
        System.out.println(product.getPart2());
    }
}
